﻿<?php $url_this =  "http://".$_SERVER ['HTTP_HOST']."/"?>
<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic');
		
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		
	  
	    echo "<script src='/mcouponMgr/jquery-mobile/jquery-1.6.4.min.js' type='text/javascript'></script>";
        echo "<script src='/mcouponMgr/jquery-mobile/jquery.mobile-1.0.min.js' type='text/javascript'></script>";	       
        echo "<link rel='stylesheet' href='/mcouponMgr/css/jquery.mobile.theme.css' />";		      
		echo "<link rel='stylesheet'  href='/mcouponMgr/css/jquery.mobile.structure.css' />";
	    echo "<script src='/mcouponMgr/js/lib/jquery.js'></script>";
		
	?>
<div class="shopimages form">

<form id="setimagePost" enctype="multipart/form-data" action="/mcouponMgr/Shopimages/setimage" method="POST">
	<fieldset>
		<legend><?php echo __('Edit Shopimage'); ?></legend>
	
		
		   <img src="<?php echo $url_this?><?php echo $ImagePath;?>">
		<input name="file" type="file" />
	  <input type="hidden" name="id" value="<?php echo $id;?>" />
	
	</fieldset>
	<div class="actions">
	<ul>
	  <li><a href="#" onclick="toPOST()">Submit</a></li>
	</ul>
	</div>
 </form>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Shopimage.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Shopimage.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Shopimages'), array('action' => 'imagelist')); ?></li>
	</ul>
</div>

<script type="text/javascript" charset="utf-8">
	  function toPOST()
        {
          

            $("#setimagePost").submit();
        }
		  </script>
